package Dwarf;

public abstract class Dwarf
{
    protected AttackBehaviour attackBehaviour;
    protected WorkBehaviour workBehaviour;

    public Dwarf()
    {
    }

    public void Attack()
    {
        attackBehaviour.Attack();
    }

    public void Work()
    {
        workBehaviour.Work();
    }

    public void Right()
    {
        System.out.println("Turning to the right");
    }

    public void Left()
    {
        System.out.println("Turning to the left");
    }

    public void Forward()
    {
        System.out.println("Taking forward direction");
    }

    public void Backward()
    {
        System.out.println("Taking backward direction");
    }

    public void Go()
    {
        System.out.println("I go!");
    }

    public void Stop()
    {
        System.out.println("Okay, okay! I'm stopping");
    }

    public void Say()
    {
        System.out.println("Hello, Dwarf world!");
    }

    public String GetType()
    {
        return "Dwarf";
    }

}
